package czk.jvm.lecture.bytecode;

public class MyTest2 {
    Object object=new Object();
    private static int i =1;

    public static void main(String[] args) {
        test();
    }
    public synchronized static void test(){
        System.out.println(1);
    }
    public void test1(){
        synchronized (object){
            System.out.println(2);
        }
    }
}
